<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<c:set value="recruit" var="moduleName" scope="request" />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<title>区域统计报表</title>
	</head>
	<body>
		<dict:dict type="province,city,district" var="provincecitydistrict" />
		<script type="text/javascript">
			var provincecitydistrict = eval('('+'<%=application.getAttribute("provincecitydistrict")%>'+')');
			function rsscLinkClick(rsscid){
				var url="applyRegionReport.do?actflag=searchProv";
				var params="&filter_provinceId=<c:out value="${filters.provinceId}" />&filter_cityId=<c:out value="${filters.cityId}" />";
				params+="&filter_districtId=<c:out value="${filters.districtId}" />";
				params+="&filter_earlierDate=<c:out value="${filters.earlierDate}" />&filter_laterDate=<c:out value="${filters.laterDate}" />";
				params+="&filter_rsscId="+rsscid;
				url+=params;
				location.href=url;
			}
		</script>
		<div class="div-content">
			<form action="<c:url value='/console/recruit/applyRegionReport.do'/>" method="post">
				<input type="hidden" name="method" class="method" value="list" />
				<input type="hidden" name="actflag" value="searchRbo"/>
				<table class="table-layout">
					<tr class="tr-odd">
						<td class="td-label">
							申请投资区域
						</td>
						<td>
							<span id="dropContainer_0"> <input type="hidden" name="filter_provinceId" value="<c:out value="${filters.provinceId}" />" /> <select id="drop_0"></select> </span>省&nbsp;&nbsp; <span id="dropContainer_1"> <input type="hidden" name="filter_cityId"
									value="<c:out value="${filters.cityId}" />" /> <select id="drop_1"></select> </span>市&nbsp;&nbsp; <span id="dropContainer_2"> <input type="hidden" name="filter_districtId" value="<c:out value="${filters.districtId}" />" /> <select id="drop_2"></select>
							</span>区

						</td>
					</tr>
					<tr class="tr-even">
						<td class="td-label">
							申请日期
						</td>
						<td>
							<input type="text" name="filter_earlierDate" value="<c:out value="${filters.earlierDate}" />" class="Wdate" onclick="WdatePicker()" />
							&nbsp;&nbsp;~&nbsp;&nbsp;
							<input type="text" name="filter_laterDate" value="<c:out value="${filters.laterDate}" />" class="Wdate" onclick="WdatePicker()" />
						</td>
					</tr>
					<%--
					<tr class="tr-odd">
						<td class="td-label">
							RBO
						</td>
						<td>
							<input type="hidden" id="filter_rsscId" name="filter_rsscId" value="<c:out value="${filters.rsscId}" />" />
							<select id="selectrsscId">
								<option value="">
									请选择
								</option>
								<logic:iterate id="rssc" name="rsscs">
									<option value="<c:out value="${rssc.code}" />">
										<c:out value="${rssc.name}" />
									</option>
								</logic:iterate>
							</select>
						</td>
					</tr>
					--%>
				</table>
				<div class="right-opertion">
					<input type="submit" value="搜索" class="button" />
				</div>
				<br />
				<table class="table-layout">
					<tr class="tr-thead">
						<th rowspan="2" style="width:30px;">
							序号
						</th>
						<th rowspan="2">
							RBO
						</th>
						<c:if test="${hasManyRbo == 0}" >
							<th >
								申请投资区域
							</th>
						</c:if>
						<th rowspan="2">
							申请确认
						</th>
						<th rowspan="2">
							初审
						</th>
						<th rowspan="2">
							走访
						</th>
						<th rowspan="2">
							材料审核
						</th>
						<th rowspan="2">
							SKN内审
						</th>
						<th rowspan="2">
							决策委员会审批

						</th>
					</tr>
					<tr class="tr-thead">
						<c:if test="${hasManyRbo == 0}">							
							<th>
								省
							</th>						
						</c:if>
					</tr>
					<logic:present name="result">
						<logic-el:iterate name="result" id="applyRegionListVoEx" indexId="index">
							<tr class="<c:if test="${index % 2 == 0}">tr-odd</c:if><c:if test="${index % 2 == 1}">tr-even</c:if>">
								<td>
									<c:out value="${index + 1}" />
									&nbsp;
								</td>
								<td>	
									<c:if test="${hasManyRbo == 1}">									
										<a href="javascript:void rsscLinkClick('<c:out value="${applyRegionListVoEx.vrssc_id}" />')">
											<common:rssc name="applyRegionListVoEx" property="vrssc_id" />
										</a>
									</c:if>
									<c:if test="${hasManyRbo == 0}">
										<common:rssc name="applyRegionListVoEx" property="vrssc_id" />
									</c:if>
								</td>
								<c:if test="${hasManyRbo == 0}">
									<td>
										<common:province name="applyRegionListVoEx" property="vprovcode" />
										&nbsp;
									</td>									
								</c:if>
								<td>
									<c:out value="${applyRegionListVoEx.confirm_amount}" />
								</td>
								<td>
									<c:out value="${applyRegionListVoEx.first_trial_amount}" />
								</td>
								<td>
									<c:out value="${applyRegionListVoEx.visit_amount}" />
								</td>
								<td>
									<c:out value="${applyRegionListVoEx.mreview_amount}" />
								</td>
								<td>
									<c:out value="${applyRegionListVoEx.skn_audit_amount}" />
								</td>
								<td>
									<c:out value="${applyRegionListVoEx.final_judgment_amount}" />
								</td>
							</tr>
						</logic-el:iterate>
					</logic:present>
				</table>
				<br />
				<div style="text-align:center;">
					<img src="<c:url value="/DisplayChart?filename=" /><c:out value="${filename}" />" />
				</div>
			</form>
		</div>
		<script type="text/javascript">
showDropDown(provincecitydistrict,["filter_provinceId","filter_cityId","filter_districtId"],"drop");
bindSelect("selectrsscId","filter_rsscId");
</script>
	</body>
</html>

